package model;

import communication.FireAlarm;
import communication.GasAlarm;
import communication.RadiationAlarm;

/**
 * Main class of the model
 * @author Adrien Ledeul
 * @version 0.1
 */
public class Main 
{
	/**
	 * Main function
	 * @param args arguments list
	 */
	public static void main(String[] args) 
	{
		Set set = new Set();
		
		//Simulation
		set.getFireSensor().notifyListeners(new FireAlarm("11/03/2010", "Polytech", 2));
		set.getGasSensor().notifyListeners(new GasAlarm("12/03/2010", "IMUS", 1, "Monoxyde"));
		set.getRadiationSensor().notifyListeners(new RadiationAlarm("11/03/2010", "IMUS", 3, 100));
		
	}
}
